package org.yylnb.openplatform.configserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author RainLin
 * @date 2020/7/16 - 9:14
 */
@SpringBootApplication
//开启配置中心服务端
@EnableDiscoveryClient
//开启服务注册,会(ˇ?ˇ) 想向eureka中注册当前服务,可以忽略编写,在使用eureka的情况下效果等于@EnableEurekaClient
@EnableConfigServer
public class ConfigServer12000 {
    public static void main(String[] args) {
        SpringApplication.run(ConfigServer12000.class);
    }
}
